package com.dtx.zhuge;


import com.dtx.zhuge.service.UserService;
import com.dtx.zhuge.spring.clazz.DtxApplicationContext;

public class Test {

    public static void main(String[] args) {
        DtxApplicationContext applicationContext = new DtxApplicationContext(AppConfig.class);

//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
        UserService userService = (UserService) applicationContext.getBean("userService");
        userService.test();


    }
}
